import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:circle-dashed',
      order: 2,
      title: 'Open Orders',
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'OpenOrdersCenter',
    path: '/open-orders',
    children: [
      {
        name: 'OpenOrders',
        path: '/open-orders/index',
        component: () => import('#/views/open-orders/index.vue'),
        meta: {
          icon: '',
          title: 'Open Orders',
          menuVisible: true,
        },
      },
    ],
  },
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:undo',
      order: 2,
      title: '撤单',
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'RevokeCenter',
    path: '/revoke',
    children: [
      {
        name: 'Revoke',
        path: '/revoke/index',
        component: () => import('#/views/revoke/index.vue'),
        meta: {
          icon: '',
          // title: $t('page.log.title'),
          title: '撤单',
          menuVisible: true,
          keepAlive: true,
        },
      },
    ],
  },
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:mountain-snow',
      order: 2,
      title: '冰山订单',
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'IcebergOrderCenter',
    path: '/iceberg-order',
    children: [
      {
        name: 'IcebergOrder',
        path: '/iceberg-order/index',
        component: () => import('#/views/iceberg-order/index.vue'),
        meta: {
          icon: '',
          title: '冰山订单',
          menuVisible: true,
        },
      },
    ],
  },
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:scroll-text',
      order: 2,
      title: '挂单器',
      hideChildrenInMenu: true,
      component: 'BasicLayout',
    },
    name: 'singleMachineHangingOrderCenter',
    path: '/sm-hanging-order',
    children: [
      {
        name: 'singleMachineHangingOrder',
        path: '/sm-hanging-order/index',
        component: () => import('#/views/sm-hanging-order/index.vue'),
        meta: {
          icon: '',
          title: '挂单器',
          menuVisible: true,
        },
      },
    ],
  },
];

export default routes;
